package day01;

public class Solution02 {
	public static int minNumberInRotateArray(int[] array) {
		for (int i = 0; i < array.length - 1; i++) {
			if (array[i] > array[i + 1]) {
				return array[i + 1];
			}
		}
		return 0;
	}

	public static void main(String[] args) {
		int[] arr = new int[] {};
		System.out.println(minNumberInRotateArray(arr));
	}
}
